package main

import (
	"log"

	"gitee.com/tgodfather/utility/device/general"
)

func main() {

	dev := general.GeneralDevice{}

	cpus, err := dev.GetCpuInfo()
	if err != nil {
		log.Println("get cpu info eror")
		return
	}

	cpuid, _ := dev.GetID()

	log.Println("cpu num:", len(cpus), cpuid)
	for i, cs := range cpus {
		log.Println("cpu: ", i, cs)
	}

}
